<div class="nav">
    <a href="{:U('index')}">第三方登录列表</a>
    <a class="sel">编辑第三方登录</a>
</div>
<div class="add">
    <form method="post" action="" >
        <table class="table_add">
            <tr style="display:none">
                <td width="100px">类名称</td>
                <td><input class="input1" type="text" name="class_name" id="class_name" value="{$model.class_name}" style="width:180px" /></td>
            </tr>
            <tr>
                <td width="100px">第三方登录名称</td>
                <td><input class="input1" type="text" name="name" id="name" value="{$model.name}" style="width:180px" /></td>
            </tr>
            <tr>
                <td>图标</td>
                <td>
                <include file="Public/uploadfile" filetype="image" id="logo"  value="{$model.logo}" editvalue="{:getEditFiles($model['logo'])}" width="100" path="oauth" limit="1" thumbw="" thumbh="" msg=""/>
                
               </td>
            </tr>
            <tr>
                <td>APP ID：</td>
                <td><input class="input1" type="text" name="par_id" id="par_id" value="{$model.par_id}" style="width:200px" /></td>
            </tr>
            <tr>
                <td>APP KEY：</td>
                <td><input class="input1" type="text" name="par_key" id="par_key" value="{$model.par_key}" style="width:200px" /></td>
            </tr>
           
            <tr style="display:none">
                <td>申请地址：</td>
                <td><input class="input1" type="text" name="apply_url" id="apply_url" value="{$model.apply_url}" style="width:500px" /></td>
            </tr>
            <tr style="display:none">
                <td>使用客户端</td>
                <td><label><input type="radio" name="client_type" id="client_type1" value="1" <if condition="$model.client_type eq 1">checked="checked" </if> />PC电脑端 </label> &nbsp;
                <label><input type="radio" name="client_type" id="client_type2" value="2" <if condition="$model.client_type eq 2">checked="checked" </if> />移动手机端 </label> &nbsp;
                <label><input type="radio" name="client_type" id="client_type3" value="3" <if condition="$model.client_type eq 3">checked="checked" </if> />两者通用 </label>
                </td>
            </tr>
           <tr>
                <td width="100px">是否启用</td>
                <td><select name="is_enable" id="is_enable" class="sel1">
                        <option value="1">启用</option>
                        <option value="0">不启用</option>
                    </select> &nbsp; &nbsp;  顺序编号：<input class="input1" type="text" name="order_id" id="order_id" value="{$model.order_id}" style="width:60px" />
                </td>
            </tr>
            <tr>
                <td></td>
                <td><input type="submit" class="btn1" value="提 交" /> &nbsp;  <input class="btn3"  type="button" onclick="window.history.back()" value="返 回" /></td>
            </tr>
        </table>
        <input type="hidden" name="id" value="{$model.id}" />
    </form>
    <script type="text/javascript">
          $("#is_enable").val('{$model.is_enable}');
    </script>
</div>
